Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Refactoring Dead Code#1008
Glasgow | Jan-26 | Elisabeth Matulian | Sprint 3 | Refactoring Dead Code#1008Elisabeth-Matulian wants to merge 2 commits intoCodeYourFuture:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| const greetingStr = greeting + ", " + name + "!"; | ||
| return `${greeting}, ${name}!`; | ||
| console.log(greetingStr); | ||
| //console.log(greetingStr); |
There was a problem hiding this comment.
You are right to highlight this one, but commenting out is not quite the same as deleting; let's address it.
|
|
||
| const pets = ["parrot", "hamster", "horse", "dog", "hamster", "cat", "hamster"]; | ||
| const capitalisedPets = pets.map((pet) => pet.toUpperCase()); | ||
| //const capitalisedPets = pets.map((pet) => pet.toUpperCase()); |
There was a problem hiding this comment.
You are right to highlight this one, but commenting out is not quite the same as deleting; let's address it.
There was a problem hiding this comment.
You have correctly identified a line that should be removed, but you are missing one more.
There was a problem hiding this comment.
You have correctly identified a line that should be removed, but you are missing one more. Can you see any properties or functions that aren't contributing to your console result of console.log(countedPetsStartingWithH); ?
|
Awesome job |
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist
Completed dead-code
Questions
N/Q